package com.jorado.redis;

public abstract class AbstractRedisClusterInitializer implements RedisClusterInitializer {

    private static boolean jorado_JEDIS_EXISTS = detectjoradoJedisClusterExists();

    static boolean isjoradoJedisExists() {
        return jorado_JEDIS_EXISTS;
    }

    public static boolean detectjoradoJedisClusterExists() {
        try {
            Class.forName("redis.clients.jedis.joradoJedisCluster");
            return true;
        } catch (Throwable cause) {
            return false;
        }
    }

}
